﻿using GirisSayfasi.Class;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GirisSayfasi
{
    public partial class kullanicikayit : Form
    {
        public kullanicikayit()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            kullanici k = new kullanici();

            k.kullaniciadi = textBox1.Text;
            k.parola = textBox2.Text;
            k.isimsoyisim = textBox3.Text;
            k.gorev = textBox4.Text;
            k.gsm = textBox5.Text;
            if (k.kullaniciekle())
            {
                MessageBox.Show("Kullanici eklenemedi");
            }
  

        }
    }
}
